
package waylines.waypoints 
{
	import org.flintparticles.common.actions.ActionBase;
	import org.flintparticles.common.emitters.Emitter;
	import org.flintparticles.common.particles.Particle;
	import org.flintparticles.twoD.particles.Particle2D;	

	public class ActionResistance extends ActionBase
	{
		private var _resistance:Number;
		
		public function ActionResistance(resistance:Number)
		{
			_resistance = resistance;
		}
		override public function update( emitter:Emitter, particle:Particle, time:Number ):void
		{
			var p:Particle2D = Particle2D( particle );
			p.velX *= _resistance;
			p.velY *= _resistance;;
		}
	}
}
